//
//  GQHPushView.m
//  Xanthium
//
//  Created by GuanQinghao on 19/05/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "GQHPushView.h"
#import "GQHFollowedTrucksView.h"
#import "GQHHeader.h"

@implementation GQHPushView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        [self loadLocalData];
        [self loadUserInterface];
    }
    return self;
}

#pragma mark --Data
- (void)loadLocalData {
    
}

#pragma mark --View
- (void)loadUserInterface {
    
    UIImageView *imageView = [[UIImageView alloc] init];
    imageView.image = [UIImage imageNamed:@"cg"];
    [self addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(self).with.inset(self.qh_statusBarHeight + self.qh_navigationBarHeight + 20);
        make.size.mas_equalTo(CGSizeMake(60, 60));
        make.centerX.mas_equalTo(self.mas_centerX);
    }];
    
    UILabel *label = [[UILabel alloc] init];
    label.text = @"发布成功";
    label.textAlignment = NSTextAlignmentCenter;
    [self addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(imageView.mas_bottom).with.offset(20);
        make.left.and.right.mas_equalTo(self);
        make.height.mas_equalTo(30);
    }];
    
}

@end
